<?php
	Hook::create("KERNEL.MENU.TOP.ADD.Search",false);
	
	Hook::add("KERNEL.MODULE.FUNCTION",function($module) {
		if(file_exists($module.'/function.inc.php'))
			include_once "function.inc.php";
	});
	
	$lien = DIR_DESIGN.'/'.getDesignName().'/images';
	Hook::add("KERNEL.MENU.TOP.ADD.Search",function($cssDir){
			?>
            	<a href="<?php echo getLienModule('recherche'); ?>"><img src="<?php echo $cssDir; ?>/images/header/rechercher.png" alt="" />Recherche</a>
            <?php 
		});
		
	Hook::add("KERNEL.MENU.TOP.ADD",function($cssDir){
		return Hook::call("KERNEL.MENU.TOP.ADD.Search",$cssDir);
	},20);

?>